<template>
  <div class="mrz-bad-request-page">
    <div class="mrz-content">
      <h1 class="mrz-code">400</h1>
      <p class="mrz-message">抱歉，您的请求无效，请检查后重试。</p>
      <button class="mrz-back-button" @click="goBack">返回首页</button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'BadRequest',
  methods: {
    goBack () {
      this.$router.push('/')
    }
  }
}
</script>
<style lang="scss" scoped>
.mrz-bad-request-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #4A90E2; /* 保持与404页面相同的蓝色背景 */
  color: #FFFFFF;

  .mrz-content {
    text-align: center;

    .mrz-code {
      font-size: 12rem;
      font-weight: bold;
      margin: 0;
      line-height: 1;
    }

    .mrz-message {
      font-size: 1.5rem;
      margin: 1rem 0;
    }

    .mrz-back-button {
      background-color: white;
      color: #4A90E2;
      border: none;
      padding: 0.8rem 2rem;
      font-size: 1rem;
      font-weight: bold;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s ease;

      &:hover {
        background-color: #F0F0F0;
      }
    }
  }
}
</style>
